Http://www.javaidea.net/list.jsp? Topic = 5
Author: Home cat
Base64 encoding is a common character encoding, which is used in many places. JDK provides very convenient base64encoder and base64decoder, which can be used to conveniently complete base64
Base64 is one of the most common encoding methods for transmitting 8Bit bytes of code on the network, and you can view rfc2045~rfc2049, which has a detailed specification of MIME. BASE64 encoding can be used to pass longer identity information in an
Http://www.javatips.net/blog/2011/08/how-to-encode-and-decode-in-base64-using-javahttp://commons.apache.org/proper/commons-codec/Official Download linkEncode and Decode in Base64 using Java explains on different techniques for Encode Base64 using
I. Brief description
MD5: All called message digest algorithm 5 (Information digest algorithm), can be encrypted, but not decrypted, belong to one-way encryption, usually used for file verification
BASE64: The 8-bit byte of any sequence is
1. Background 1.1. Coding and decoding technologyOften we also get used to calling encoding (Encode) serialization (serialization), which serializes objects into byte arrays for network transmission, data persistence, or other purposes.Conversely,
One, base64 picture codecBasic process: Download a picture from the network, then Base64 encoding, and then base64 decoding, stored in the local e-packing directory.
One, base64 picture codecBasic flow: Download a picture from the network. Then base64 encoding, and then base64 decoding, stored in the local e-packing folder.
Base64 is one of the most common encoding methods used to transmit 8-bit code on the network. For details, refer to RFC2045 ~ RFC2049, which has the MIME detailed specification. Base64 encoding can be used to transmit long identification information
Base64 Basic Algorithm principle
String instance (Base64 codec for S13)Test: S13Code: CzezDecoding: S13
How to encode the process analysis of S13 for Czez:
BASE64 requires converting every three 8Bit bytes to four 6Bit bytes (3*8 = 4*6 = 24), and
Objective
The basic encoding is a standard BASE64 encoding for handling conventional requirements: the output does not add line breaks, and the output is composed of letters plus numbers.
Recently made a Web template, which wants to use the Base64
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.